package com.raptor.trustworthy.server.contraller;

import java.util.HashMap;
import java.util.Map;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author renhuan
 * @Date 2020-08-31 17:35
 **/
@RestController
@RequestMapping("/hhh")
public class HelloController {

  @PostMapping("/hello")
  public void hello() {
    System.out.println("Hello World");
  }


  @PostMapping("/haveRes")
  public Map<String, Object> haveRes() {

    Map<String, Object> res = new HashMap<>();
    res.put("resMsg", "list");
    return res;

  }
}
